package com.cmcc.migu.common.entity;

import java.util.Map;

public class ParamBody {

	private Map<String, Object> paramBodyMap;

	public String getStringParam(String key) {
		Object value = paramBodyMap.get(key);
		if(value != null)
			return value.toString();
		else
			return null;
	}
	
	public Integer getIntegerParam(String key) {
		Object value = paramBodyMap.get(key);
		if(value != null)
			return Integer.parseInt(value.toString());
		else
			return null;
	}
	
	public Long getLongParam(String key) {
		Object value = paramBodyMap.get(key);
		if(value != null)
			return Long.parseLong(value.toString());
		else
			return null;
	}
	
	public void setParamBodyMap(Map<String, Object> paramBodyMap) {
		this.paramBodyMap = paramBodyMap;
	}

	public ParamBody() {
		super();

	}

}
